<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

/**
 * 图片处理逻辑
 *
 * Date: 10/05/2018
 * @author George
 * @package App\Models
 */
class Image extends Model
{
	/**
	 * 定义不可填充字段
	 *
	 * @var array
	 * Date: 25/04/2018
	 * @author George
	 */
	protected $guarded = ['id'];

	/**
	 * 获取图片关联的模型信息
	 *
	 * Date: 25/04/2018
	 * @author George
	 * @return \Illuminate\Database\Eloquent\Relations\MorphTo
	 */
	public function imagetable()
	{
		return $this->morphTo();
	}
}
